package com.csg.service.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

/**
 * @author george
 */
@RestController
@RequestMapping(value = "/user")
public class UserController {

    @GetMapping(value = "/me")
    public Principal user(Principal principal) {
        return principal;
    }
}
